import java.util.ArrayList;
import java.util.List;

// Building 类
class Building {
    private String name;
    
    public Building(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}

// Course 类
class Course {
    private String courseName;
    private Building location; 

    public Course(String courseName, Building location) {
        this.courseName = courseName;
        this.location = location;
    }

    public String getCourseName() {
        return courseName;
    }

    public Building getLocation() {
        return location;
    }
}

// College 类
class College {
    private List<Building> buildings; 
    private List<Course> courses;

    public College() {
        this.buildings = new ArrayList<>();
        this.courses = new ArrayList<>();
    }

    public void addBuilding(Building building) {
        buildings.add(building);
    }

    public void addCourse(Course course) {
        courses.add(course);
    }

    public List<Building> getBuildings() {
        return buildings;
    }

    public List<Course> getCourses() {
        return courses;
    }
}
